﻿using DFGK_WMS.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.IRepository
{
    public interface ITMaterialGroupRepository:IBaseRepository<TMaterialGroup>
    {
        /// <summary>
        /// 添加物料组
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        bool AddTMaterialGroup(TMaterialGroup m);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="mid"></param>
        /// <returns></returns>
        bool DelTMaterialGroup(int mid);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        bool UpdTMaterialGroup(TMaterialGroup m);

        /// <summary>
        /// 查看
        /// </summary>
        /// <param name="mid"></param>
        /// <returns></returns>
        TMaterialGroup GetTMaterialGroupById(int mid);

        /// <summary>
        /// 显示列表
        /// </summary>
        /// <param name="manme"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="totalCount"></param>
        /// <returns></returns>
        List<TMaterialGroup> GetTMaterialGroupList(string manme,int pageIndex,int pageSize,out int totalCount);
    }
}
